<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="images/ico/site.ico">

    <title>WineList Page from Starter Template for Bootstrap (as Template Page)</title>

    <!-- Bootstrap core CSS -->
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<link rel="stylesheet" href="../lib/backgrid/backgrid.css">
	<link rel="stylesheet" href="../lib/backgrid/backgrid-select-all.css">
	<link rel="stylesheet" href="../lib/backgrid//backgrid-paginator.css">
	<link rel="stylesheet" href="../lib/backgrid//backgrid-filter.css">

    <!-- Custom styles for this template -->
    <link href="starter-template.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="..">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>

    <div class="container">

      <div class="starter-template">
        <h1>Terrotory List</h1>
        <p class="lead">This page is derived from Bootrstrap starter template. <br> Use this document as a way to quickly start any new project.<br> 
        It demonostrates the object list and delete functions, and has links to addnew and edit.
      </div>

	<div id="datalist" class="backgrid-container"></div>
	
	<div id="sourcecode" class="container">
		<h5>Page Source code</h5>
		<div id="htmlsource" class="container">
		<p>fsaf</p>
		</div>
	</div>
    
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->

	<script src="../lib/jquery-2.1.0.min.js"></script>
    <script src="../lib/bootstrap.min.js"></script>
	<script src="../lib/underscore.js"></script>
	<script src="../lib/backbone.js"></script>
	<script src="../lib/backgrid/backbone-pageable.js"></script>
	<script src="../lib/backgrid/backgrid.js"></script>
	<script src="../lib/backgrid/backgrid-select-all.js"></script>
	<script src="../lib/backgrid/backgrid-paginator.js"></script>
	<script src="../lib/backgrid/backgrid-filter.js"></script>
	<script src="territorylist.js"></script>
    
    <script>
    
$(function() {
	territorylist.render();
});

//$(htmlsource).html(document.getElementById("datalist").outerHTML);

	</script>
    </div>

  </body>
</html>
